package com.jms.common.exception;

/**
 * @author jamison
 * @version 1.0
 * @date 2021/1/3 16:37
 */
public enum BizCodeEnum {

    SMS_CODE_EXCEPTION(10001, "验证码获取频率太高,请稍后再试"),
    SMS_CODE_FAIL(10002, "验证码发送失败"),
    CODE_OVERDUE_OR_ERROR_EXCEPTION(10003, "验证码过期或者不正确，请重新发送验证码"),
    USER_NOT_REGISTER(10004, "用户未注册"),
    AUTH_SERVER_TYPE_LOGIN(20001, "登录"),
    AUTH_SERVER_TYPE_REGISTER(20002, "注册"),
    USERNAME_ERROR_OR_PASSWORD_FAILED(20003, "用户名或密码错误！"),
    LOGIN_SUCCESS(20004, "登录成功！"),
    WEIBO_LOGIN_FAIL(20005, "微博登录失败！");

    private int code;
    private String msg;

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
